package com.ymm.spark.dao.impl;

import com.ymm.spark.config.JdbcHelper;
import com.ymm.spark.dao.IPageSplitConvertRateDAO;
import com.ymm.spark.domain.PageSplitConvertRate;

/**
 * 页面切片转换率DAO实现类
 *
 * @author zhangj
 * @date 2019/12/5
 */
public class IPageSplitConvertRateDAOImpl implements IPageSplitConvertRateDAO {
	@Override
	public void insert(PageSplitConvertRate pageSplitConvertRate) {
		String sql = "insert into page_split_convert_rate values (?,?)";

		Object[] param = new Object[]{pageSplitConvertRate.getTaskid(), pageSplitConvertRate.getConvertRate()};
		//执行SQL语句
		JdbcHelper.getInstance().executeUpdate(sql, param);
	}
}
